package 作业2.television;

public class Hisense extends TV {
    boolean d3;

    Hisense(){

    }

    Hisense(String brand,int size,boolean d3){
        super(brand,size);
        this.d3=d3;
    }
    void output(){
        if(d3==true){
            System.out.println("电视的"+brand+"尺寸"+size+"是否为3D电视"+d3);
        }
        else
            System.out.println("电视的"+brand+"尺寸"+size);
    }
}
